package GUI;

import javax.swing.*;

import java.awt.*;


public class FrozengRequestGui extends JPanel{

	private static final long serialVersionUID = 1L;
	private JTextArea reqIdField;
	private JButton canButton;
	private JButton subButton;

	public FrozengRequestGui() {
		super();
		reqIdField = new JTextArea();
		subButton = new JButton("submit");
		canButton = new JButton("cancel");		
		initiate();
	}
	
	public void initiate(){
		
		JLabel lblLogInWindow = new JLabel("Freeze request");
		lblLogInWindow.setForeground(Color.BLUE);
		lblLogInWindow.setFont(new Font("Arial Black", Font.BOLD, 17));
		lblLogInWindow.setBounds(145, 31, 247, 50);
		add(lblLogInWindow);
		
		JLabel lblUserName = new JLabel("Enter request number:");
		lblUserName.setFont(new Font("Arial", Font.BOLD, 13));
		lblUserName.setBounds(10, 98, 157, 50);
		add(lblUserName);
		
		reqIdField.setBounds(193, 98, 191, 40);
		add(reqIdField);
		reqIdField.setColumns(10);
		
		subButton.setFont(new Font("Arial", Font.PLAIN, 12));
		subButton.setBounds(284, 218, 122, 40);
		add(subButton);
		
		canButton.setFont(new Font("Arial", Font.PLAIN, 12));
		canButton.setBounds(33, 218, 122, 40);
		add(canButton);
	
		
		setLayout(null);
		setSize(new Dimension(500, 300));
	}

	public JButton getSubBott(){
		return subButton;
	}
	
	public JButton getSCanBott(){
		return canButton;
	}

	
	public JTextArea getTextField_reqID(){
		return reqIdField;
	}
}
